package com.woniu.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.param.SelectUserInfoParam;
import com.woniu.user.entity.EmployeeInfo;
import com.woniu.user.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 维修员工表 Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2024年12月05日
 */
@Mapper
public interface EmployeeInfoMapper extends BaseMapper<EmployeeInfo> {
   EmployeeInfo selectByUserId(Integer userId);

    List<EmployeeInfo> selectWorkerList(SelectUserInfoParam param);

    void batchUpdateUserInfos(List<EmployeeInfo> userInfosToUpdate);

    List<EmployeeInfo> queryWorkerListAreaCode(String areaCodeId)throws Exception;
}
